<!-- 此tpl如使用script标签渲染，请遵循layui.laytpl语法，此页面，支持PHP语法-->
<script type="text/html" id="orderDemo">
    {foreach name="right_buttons" key="key" item="vo"}
        {if $vo.title == '发货'}
            {{#  if (d.status > 1 && d.status < 6) { }}
            {{#  if (d.status == 2) { }}
            <a class="{:getBtnClassTpl($vo.class,$vo.title)}" lay-event="{$vo.json}">发货</a>
            {{#  } else { }}
            <a class="{:getBtnClassTpl($vo.class,$vo.title)}" lay-event="{$vo.json}">发货详情</a>
            {{#  } }}
            {{#  } }}
        {elseif $vo.title == '删除'}
            {{#  if (d.status == 1 || d.status == 6) { }}
            <a class="{:getBtnClassTpl($vo.class,$vo.title)}" lay-event="{$vo.json}">删除</a>
            {{#  } }}
        {else}
            <a class="{:getBtnClassTpl($vo.class,$vo.title)}" lay-event="{$vo.json}">{$vo.title}</a>
        {/if}
    {/foreach}
</script>

<script id="addressTpl" type="text/html">
    <div>{{d.p?d.p.title:''}}{{d.c?d.c.title:''}}{{d.d?d.d.title:''}}{{d.address_details}}</div>
</script>

<script id="snTpl" type="text/html">
    <a style="color: rgb(45, 140, 240); display: block; cursor: pointer;" onclick="openDrawer('订单详情','{:url('order/edit')}?id={{d.id}}','1000px','r')">
        {{d.sn}}
    </a>
</script>

<script id="productTpl" type="text/html">
    <div class="vxe-cell">
        <div order-product="" class="ivu-tooltip">
            <div class="ivu-tooltip-rel">
                {{#  layui.each(d.productsField, function(index, item){ }}
                <div order-product="" class="tabBox">
                    <div order-product="" class="tabBox_img">
                        <img order-product="" src="{{item.icon}}"
                             class="lay-images"></div>
                    <span order-product="" class="tabBox_tit line1">{{item.title}} {{item.spec?' | ' + item.spec:''}}</span>
                    <span order-product=""> x {{item.num}}</span>
                </div>
                {{#  }); }}
            </div>
        </div>
    </div>
</script>
